﻿using DXApplicationTangche.UC.面料审核.Service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.面料审核
{
    public partial class Form成衣面料库存 : DevExpress.XtraEditors.XtraForm
    {
        private List<String> materials = new List<String>();

        public Form成衣面料库存()
        {
            InitializeComponent();
        }
        public Form成衣面料库存(List<String> materials)
        {
            InitializeComponent();
            this.materials = materials;
            this.刷新();
        }

        private void simpleButton刷新_Click(object sender, EventArgs e)
        {
            this.刷新();
        }
        private void 刷新()
        {
            List<KingDeeStockInventoryDTO> kingDeeStockInventoryDTOs = 面料审核Service.getKingDeeStockInventoryByFnames(this.materials);
            this.gridControl面料库存.DataSource = kingDeeStockInventoryDTOs;
            this.gridView面料库存.RefreshData();
        }
    }
}
